package puzzle.platformer.game;

public class Player{
	private int x;
	private int y;
	private int imageid;
	private int left_x;
	private int right_x;
	private int top_y;
	private int bottom_y;
	private int width;
	private int height;
	
	public void setValues(int x, int y, int imageid, int width, int height){
		this.x = x;
		this.y = y;
		this.width = width;
		this.left_x = x - (width/2);
		this.right_x = x + (width/2);
		this.height = height;
		this.top_y = y - (height/2);
		this.bottom_y = y + (height/2);
		this.imageid = imageid;
	}
	
	public int getX(){
		return x;
	}
	
	public int getLeftX(){
 		return left_x;
 	}
 	
 	public int getRightX(){
 		return right_x;
 	}
	
	public int getY(){
		return y;
	}
	
	public int getTopY(){
 		return top_y;
 	}
 	
 	public int getBottomY(){
 		return bottom_y;
 	}
	
	public int getImageId(){
		return imageid;
	}
	
	public void moveX(int amount){
		left_x += amount;
		right_x += amount;
		x += amount;
	}
	
	public void moveY(int amount){
		top_y += amount;
		bottom_y += amount;
		y += amount;
	}
}
